package dk;

import java.util.ArrayList;
import java.util.List;

public class createIncludes {

	util u = new util();
	
	private List<String> pythonIncludelist=new ArrayList<String>();
	private List<String> postGreSQLIncludelist=new ArrayList<String>();
	
	public static void main(String[] args) {
		createIncludes ci = new createIncludes();
		ci.Run();

	}
	
	
	public void Run(){
	
		
		
		//System.out.println("fred");
	
	
	String input1 = "postgresql-8.4.9/contrib/ltree/crc32.h";
	String input2 = "postgresql-8.4.9/contrib/ltree/crc32.h";
	String input3 = "postgresql-8.4.9/contrib/ltree/crc32.h";
	String input4 = "postgresql-8.4.9/contrib/ltree2/crc32.h";
	
//	System.out.println(u.RemoveMethodNameFromPath(input1,".h"));
	//System.out.println(isItemInArray(malwareList,"protocol-ap_get_mime_headers_core1"));
	//System.out.println(u.isItemInArray(pythonIncludelist,"protocol-ap_get_mime_headers_core1"));
	//System.out.println(u.isItemInArray(pythonIncludelist,"postgresql-8.4.9/contrib/ltree/crc32.h"));
	
	
	/*
	addItemPostgreSQL(u.RemoveMethodNameFromPath(input1, ".h"));
	addItemPostgreSQL(u.RemoveMethodNameFromPath(input2, ".h"));
	addItemPostgreSQL(u.RemoveMethodNameFromPath(input3, ".h"));
	addItemPostgreSQL(u.RemoveMethodNameFromPath(input4, ".h"));
	*/
	
	
//	addItemPostgreSQL(u.RemoveMethodNameFromPath("postgresql-8.4.9/contrib/ltree/crc32.h"));
	
//	System.out.println(u.RemoveMethodNameFromPath("postgresql-8.4.9/src/bin/pg_dump/pg_dump.h"));

	
	// ************************************************************
	
	
	
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Misc/pymemcompat.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_pth.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_lwp.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/importdl.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_solaris.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_beos.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_wince.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_sgi.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_os2.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_foobar.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_cthread.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_nt.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_atheos.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Python/thread_pthread.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/ucnhash.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/classobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pyarena.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pyport.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/parsetok.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/traceback.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/Python.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/ceval.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/node.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/fileobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/longintrepr.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pgen.hPython-2.5.1/Include/intrcheck.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/tupleobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/structmember.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/patchlevel.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/codecs.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/eval.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/methodobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/metagrammar.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/abstract.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/rangeobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/timefuncs.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/py_curses.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pymactoolbox.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/opcode.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/setobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/bitset.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/compile.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/longobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/code.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/bufferobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/weakrefobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/descrobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pythonrun.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/datetime.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/funcobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/frameobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/ma rshal.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/intobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pygetopt.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pydebug.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pyexpat.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/stringobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/genobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/graminit.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/floatobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/cellobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/complexobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pyfpe.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pgenheaders.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/sysmodule.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/sliceobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/osdefs.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/errcode.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pystate.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pymem.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/dictobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/symtable.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/import.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pyerrors.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/grammar.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/unicodeobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/moduleobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/enumobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/asdl .h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/cobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/object.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/iterobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pythread.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/pystrtod.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/objimpl.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/cStringIO.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/listobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/boolobject.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/Python-ast.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/modsupport.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/ast.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/token.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Include/structseq.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Doc/commontex/typestruct.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Objects/stringlib/count.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Objects/stringlib/partition.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Objects/stringlib/find.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Objects/stringlib/fastsearch.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Objects/unicodetype_db.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/PythonLauncher/doscript.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/PythonLauncher/MyAppDelegate.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/PythonLauncher/MyDocument.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/PythonLauncher/PreferencesWindowController.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("P ython-2.5.1/Mac/PythonLauncher/FileSettings.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/scripts/mkestrres-errno.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/scripts/mkestrres-macerrors.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/Modules/cg/CFMLateImport.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Mac/Modules/cf/pycfbridge.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/PC/bdist_wininst/archive.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/PC/bdist_wininst/resource.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/PC/errmap.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/PC/pyconfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/PC/os2vacpp/pyconfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/PC/os2emx/pyconfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/PC/os2emx/dlfcn.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/RISCOS/unixstuff.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/RISCOS/pyconfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi_arm_wince/fficonfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi_arm_wince/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi_arm_wince/ffi_common.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi_arm_wince/ffi.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/s390/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/mips/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/sh64/ffi target.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/pa/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/x86/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/m32r/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/cris/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/powerpc/asm.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/sh/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/sparc/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/arm/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/ia64/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/ia64/ia64_flags.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/frv/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/m68k/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/darwin/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/src/alpha/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi/include/ffi_common.h< br>Python-2.5.1/Modules/_ctypes/libffi_msvc/fficonfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi_msvc/ffitarget.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi_msvc/ffi_common.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/libffi_msvc/ffi.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/_ctypes_test.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/ctypes_dlfcn.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/darwin/dlfcn.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_ctypes/ctypes.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/sre_constants.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/mappings_hk.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/mappings_cn.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/mappings_jisx0213_pair.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/mappings_kr.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/multibytecodec.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/emu_jisx0213_2000.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/mappings_jp.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/mappings_tw.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/alg_jisx0201.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cjkcodecs/cjkcodecs.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/md5 .h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/crc32.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/inftrees.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/zconf.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/zlib.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/zconf.in.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/deflate.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/inflate.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/zutil.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/inffast.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/inffixed.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/zlib/trees.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/cgensupport.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/cache.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/prepare_protocol.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/microprotocols.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/module.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/connection.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/statement.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/util.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/sqlitecompat.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/cursor.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/_sqlite/row.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/rotatingtree.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/timing. h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/winconfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/expat.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/xmltok.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/amigaconfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/macconfig.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/asciitab.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/expat_external.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/expat_config.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/ascii.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/latin1tab.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/nametab.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/internal.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/xmltok_impl.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/utf8tab.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/pyexpatns.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/iasciitab.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/expat/xmlrole.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/unicodename_db.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/addrinfo.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/testcapi_long.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/yuv.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/socketmodule.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/unicodedata_db.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Modules/sre.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Parser/tokenizer.h",".h"));
	addItemPythonList(u.RemoveFileNameFromPath("Python-2.5.1/Parser/parser.h",".h"));
	
	
	//*************************************************************
	
	
	
	
	
	
	
	
	
	
	
	final String postGrePath = "/home/dan/Downloads/";
	
	StringBuilder sbPostgreSQL = new StringBuilder();
	sbPostgreSQL.append("export C_INCLUDE_PATH=");
	
	
	// now ouput the contents of the array
	for (int x=0; x<pythonIncludelist.size();x++){
//	for (int x=0; x<3;x++){
	
	//	System.out.println(postGreSQLIncludelist.get(x).toString());
		sbPostgreSQL.append(postGrePath);
		sbPostgreSQL.append(pythonIncludelist.get(x).toString().replace(" ", ""));
		sbPostgreSQL.append("/:");
		
	}
	
	
	
	
	
	
	// Now build the include statement to be added to bash
	 System.out.println(sbPostgreSQL.toString());
	
	
	}
	
	
	
	// Add item to list. Quick & dirty for now.
	private void addItemPostgreSQL(String input){
		if(!u.isItemInArray(postGreSQLIncludelist, input)){
			postGreSQLIncludelist.add(input);
		}
	}
	
	
	
	private void addItemPythonList(String input){
		if(!u.isItemInArray(pythonIncludelist, input)){
			pythonIncludelist.add(input);
		}
	}
	
	
	
	
	
	
	
	
	
	
	
	
	

	
	
	
}
